<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <div id="app">hi app</div>
    <script src="./vue.js"></script>
    <script>
      const vm = new Vue({
        el: "#app",
        // template: "<h1>hello {{title}}，{{'hello jack'}} </h1>",
        template: "<div>hello {{name}} <span v-once>{{name}}</span></div>",
        data: {
          name: "lili",
        },
      });

      // vm.name = "jack";

      setInterval(() => {
        vm.name = "jack" + Math.random();
      }, 1000);
    </script>
  </body>
</html>
